package com.xx.xunyou.service;

import com.xx.xunyou.entity.item.chizhuzaixiang.vo.ChizhuzaixiangVo;
import com.xx.xunyou.entity.item.xiangcunbanshouli.Xiangcunbanshouli;
import com.xx.xunyou.entity.item.xiangcunbanshouli.Xiangcunbanshoulicontent;
import com.xx.xunyou.entity.item.xiangcunbanshouli.vo.XiangcunbanshouliBaseVo;

import java.util.List;
import java.util.Map;

/**
 * @program: xunyou-parent
 * @author: zhl
 * @create: 2019-04-22
 **/
public interface XiangcunbanshouliService {
    /**
     * 查询条数
     * @param map
     * @return
     */
    Integer queryListCountToManager(Map<String,Object> map);

    /**
     * 查询数据
     * @param map
     * @return
     */
    List<Map> queryListToManager(Map<String,Object> map);

    /**
     * 添加信息
     * @param xiangcunbanshouli
     * @param content
     */
    void insert(Xiangcunbanshouli xiangcunbanshouli, String content);

    /**
     * 通过id查询
     * @param xiangcunbanshouliId
     * @return
     */
    Xiangcunbanshouli queryByIdToManagr(Integer xiangcunbanshouliId);

    /**
     * 通过id查询
     * @param xiangcunbanshouliId
     * @return
     */
    Xiangcunbanshoulicontent queryContentByIdToManager(Integer xiangcunbanshouliId);

    /**
     * 修改
     * @param xiangcunbanshouli
     * @param content
     */
    void update(Xiangcunbanshouli xiangcunbanshouli, String content);

    /**
     * 删除
     * @param xiangcunbanshouliId
     */
    void delete(Integer xiangcunbanshouliId);

    /**
     * 推荐
     * @param xiangcunbanshouliId
     */
    void recommend(Integer xiangcunbanshouliId);

    /**
     * 取消推荐
     * @param xiangcunbanshouliId
     */
    void notRecommend(Integer xiangcunbanshouliId);

    /**
     * 查询数据给app
     * @param map
     * @return
     */
    List<XiangcunbanshouliBaseVo> queryListToAPPIndex(Map<String,Object> map);
}
